package DAO;

import entity.Book;
import java.util.List;
public interface BookDao {

    //查询所有数据
    public List<Book> findAll();
    //根据id查询一条数据
    public Book findById(String bookId);
    //添加一条数据
    public int insertBook(Book book);
    //根据id删除一条数据
    public int deleteBook(int bookId);
    //根据id修改一条数据
    public int updateBook(Book book);
}